package com.raymond.queue.client.msg;

import com.raymond.queue.common.msg.DefaultMessage;

/**
 * 失败响应器
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2021-07-14 11:39
 */
public class FailResponseMessage extends DefaultMessage {
    /**
     * 0:创建成功
     * -1:递交失败
     * -2:没有响应
     */
    private int code;

    public FailResponseMessage(int code) {
        super(0);
        this.code = code;
    }

    @Override
    public int getCommandId() {
        return 0;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
